package org.gy.T9;

import java.io.DataOutputStream;
import java.io.FileOutputStream;

public class DataOutputStreamTest1 {
    public static void main(String[] args) {
        try (
// 1、创建⼀个数据输出流包装低级的字节输出流
                DataOutputStream dos =
                        new DataOutputStream(new FileOutputStream("C:/file-io-app2/src/itheima10out.txt"));
        ){
            dos.writeInt(97);
            dos.writeDouble(99.5);
            dos.writeBoolean(true);
            dos.writeUTF("⿊⻢程序员666！");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
